<template>
  <el-container>
    <el-aside class="menu-left">
      <ht-ms-logo redirct="/admin" />
      <el-menu router :default-active="$route.path" active-text-color="#ffd04b">
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-s-operation"></i>
            <span>字典设置</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/admin/sysdictionary"
              ><template>
                <i class="el-icon-s-operation"></i>
                <span>字典设置</span>
              </template>
            </el-menu-item>
            <el-menu-item index="/admin/sysdictype"
              ><template>
                <i class="el-icon-s-operation"></i>
                <span>字典类型设置</span>
              </template>
            </el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-container>
      <el-header height="">
        <ht-ms-header v-if="$route.meta.header"></ht-ms-header>
      </el-header>
      <el-main height="">
        <router-view />
      </el-main>
      <el-footer>
        <ht-ms-footer v-if="$route.meta.footer"></ht-ms-footer
      ></el-footer>
    </el-container>
  </el-container>
</template>

<script>
import footer from "@/components/footer";
import header from "@/components/header";
import htlogo from "@/components/logo";
export default {
  components: {
    [footer.name]: footer,
    [header.name]: header,
    [htlogo.name]: htlogo
  },
  data() {
    return {
      default_active: ""
    };
  },
  methods: {}
};
</script>
